<?php
namespace app\common\model\news;

use think\Model;

class NewsType extends Model
{
    protected $pk="id";

    protected $name="news_type";

    public static function getNewsTypeList(){
        $res=self::where("pid",0)->order("news_type_sort desc,id desc")->select();
        return $res;
    }
}